From: Florian Müllner Date: Tue, 12 Feb 2019 19:17:07 +0000 (+0100) Subject: ci: Skip source_check stage when appropriate X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~91 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f248b91f825fef02b4f639ab8fbc3be15802f172;p=gnome-shell.git ci: Skip source_check stage when appropriate We don't have to run the static analyzer on javascript sources when no javascript source was changed. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46d86f85c..a08ee78ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,9 @@ js_check: script: - find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG - (! grep -q . $JS_LOG) + only: + changes: + - js/**/* artifacts: paths: - ${JS_LOG}